package com.wxz.gblw.cjg.utils.generator.config;

import lombok.Data;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author xiangzhong.wang
 * @date 2019-12-31 14:07
 */
@Data
public class GeneratorConfig {
    public GeneratorConfig() {
        ignoreColumns = new ArrayList<>();
        ignoreTables = new ArrayList<>();
        ignorePrefix = new ArrayList<>();
        ignoreColPrefix = new ArrayList<>();
        coverFiles = Arrays.asList("baseEntity");
        author = "xiangzhong.wang";
    }

    /**
     * 作者
     */
    private String author;

    /**
     * 数据库连接
     */
    private String url;

    /**
     * 数据库用户名
     */
    private String user;

    /**
     * 数据库密码
     */
    private String password;

    /**
     * 数据库驱动
     */
    private String driver;

    /**
     * 生成根路径
     */
    private String path;

    /**
     * 生成根包
     */
    private String classPath;

    /**
     * 忽略的字段
     */
    private List<String> ignoreColumns;

    /**
     * 忽略的表
     */
    private List<String> ignoreTables;

    /**
     * 忽略表前缀
     */
    private List<String> ignorePrefix;

    /**
     * 忽略字段前缀
     */
    private List<String> ignoreColPrefix;

    /**
     * 覆盖的文件：baseEntity/entity/mapper/service/controller/test
     */
    private List<String> coverFiles;
}

